From 7c766ee39d11514efea154b8ca34e604e7805187 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 23 Jan 2021 17:31:50 -0600 Subject: [PATCH] Add a "trim" key to the bulk upload map --- examples/etc/pgwui.ini | 5 +++++ examples/misc/development.ini | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/examples/etc/pgwui.ini b/examples/etc/pgwui.ini index f4e0f4d..e4d900e 100644 --- a/examples/etc/pgwui.ini +++ b/examples/etc/pgwui.ini @@ -295,11 +295,16 @@ pgwui.dry_run = False # - file_map: # file: baz.csv # relation: meta.baz_table +# trim: false # # The files within each directory are uploaded in the order in which # they are listed in the map file. The directories in the zip file are # processed in alphabetical order. # +# The "trim:" key in the file_map map controls whether or not whitespace +# is removed from data values. "trim:" takes a boolean value. It +# defaults to true. It overrides other choices in the GUI interface. +# # Top level tags, other than the `map_list` tag, are ignored. # # It is recommended to enclose file names which contain spaces, or begin diff --git a/examples/misc/development.ini b/examples/misc/development.ini index dc0748b..b122e05 100644 --- a/examples/misc/development.ini +++ b/examples/misc/development.ini @@ -302,11 +302,17 @@ pgwui.validate_hmac = False # - file_map: # file: baz.csv # relation: meta.baz_table +# trim: false +# # # The files within each directory are uploaded in the order in which # they are listed in the map file. The directories in the zip file are # processed in alphabetical order. # +# The "trim:" key in the file_map map controls whether or not whitespace +# is removed from data values. "trim:" takes a boolean value. It +# defaults to true. It overrides other choices in the GUI interface. +# # Top level tags, other than the `map_list` tag, are ignored. # # It is recommended to enclose file names which contain spaces, or begin -- 2.34.1